import { createRouter, createWebHistory } from 'vue-router';


const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes:[
        {path:'/', redirect: '/manager/home'},
        {
            path:'/manager',
            component: () => import('@/views/Manager.vue'),
            children:[
                { path: 'home', meta: { name: '系统首页' }, component: () => import('@/views/manager/Home.vue'),  },
                { path: 'admin', meta: { name: '管理员信息' }, component: () => import('@/views/manager/Admin.vue'), },
                { path: 'notice', meta: { name: '系统公告' }, component: () => import('@/views/manager/Notice.vue'), },
                { path: 'person', meta: { name: '个人资料' }, component: () => import('@/views/manager/Person.vue'), },
                { path: 'password', meta: { name: '修改密码' }, component: () => import('@/views/manager/Password.vue'), },
                { path: 'classInfo', meta: { name: '班级信息' }, component: () => import('@/views/manager/ClassInfo.vue'), },
                { path: 'student', meta: { name: '学生信息' }, component: () => import('@/views/manager/Student.vue'), },
                { path: 'feedback', meta: { name: '反馈信息' }, component: () => import('@/views/manager/Feedback.vue'), },
                { path: 'metrics', meta: { name: '添加指标' }, component: () => import('@/views/manager/Metrics.vue'), },
                { path: 'apply', meta: { name: '上传指标' }, component: () => import('@/views/manager/Apply.vue'), },
                { path: 'approval', meta: { name: '上传指标' }, component: () => import('@/views/manager/Approval.vue'), },
                { path: 'science', meta: { name: '研究生院管理员信息' }, component: () => import('@/views/manager/Science.vue'), },
                { path: 'college', meta: { name: '学院管理员信息' }, component: () => import('@/views/manager/College.vue'), },
                { path: 'super', meta: { name: '超级管理员信息' }, component: () => import('@/views/manager/Super.vue'), },
                { path: 'induction', meta: { name: '名单确认' }, component: () => import('@/views/manager/Induction.vue'), },
            ]
        },
        {path: '/login', component: () => import('@/views/Login.vue')},
        {path: '/register', component: () => import('@/views/Register.vue')},
        {path: '/404', component: () => import('@/views/404.vue')},
        {path: '/:pathMatch(.*)', redirect: '/404'}
    ]
})
export default router